import React, { Component } from "react";
import FuntComponent from "../components/FuntComponent";

export default class demo02 extends Component {
  render() {
    return (
      <div>
        <FuntComponent>
          {color => (
            <div
              style={{ background: color, width: "50px", height: "50px" }}
            ></div>
          )}
        </FuntComponent>
      </div>
    );
  }
}
